package com.yonyou.iuap.jxzy.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Random;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.hutool.core.date.DateUtil;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yonyou.iuap.baseservice.bpm.entity.AbsBpmModel;
import com.yonyou.iuap.baseservice.print.entity.Printable;
import com.yonyou.iuap.baseservice.support.condition.Condition;
import com.yonyou.iuap.baseservice.support.generator.GeneratedValue;


/**
 * 进口废纸表体
 * @author wanggp
 * @date 2019年5月28日
 *
 */
@JsonIgnoreProperties(ignoreUnknown=true)
@Table(name="jx_importpaper_b")
public class WastePaperBodyVO extends AbsBpmModel implements Serializable,Printable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
    @GeneratedValue
    @Condition
    protected String id;//ID
    @Override
    public String getId() {
        return id;
    }
    @Override
    public void setId(Serializable id){
        this.id= id.toString();
        super.id = id;
    }
    public void setId(String id) {
        this.id = id;
    }

    @Condition
    @Column(name="packageNo")
    
    private String packageNo;        //件数

    public void setPackageNo(String packageNo){
        this.packageNo = packageNo;
    }
    public String getPackageNo(){
        return this.packageNo;
    }

    @Condition
    @Column(name="reason")
    private String reasoncode;        //原因编码
    
    public String getReasoncode() {
		return reasoncode;
	}
	public void setReasoncode(String reasoncode) {
		this.reasoncode = reasoncode;
	}

	@Condition
    @Column(name="reasonid") 	//原因id
    private String reasonid;        //原因id
	
    public String getReasonid() {
		return reasonid;
	}
	public void setReasonid(String reasonid) {
		this.reasonid = reasonid;
	}

	@Condition
    @Column(name="reason")
    
    private String reason;        //原因

    public void setReason(String reason){
        this.reason = reason;
    }
    public String getReason(){
        return this.reason;
    }

    @Condition
    @Column(name="deductionRate")
    
    private String deductionRate;        //扣率

    public void setDeductionRate(String deductionRate){
        this.deductionRate = deductionRate;
    }
    public String getDeductionRate(){
        return this.deductionRate;
    }

    @Condition
    @Column(name="audit_packageNo")
    
    private String audit_packageNo;        //审核件数
    
    public String getAudit_packageNo() {
		return audit_packageNo;
	}
	public void setAudit_packageNo(String audit_packageNo) {
		this.audit_packageNo = audit_packageNo;
	}
	
	@Condition
    @Column(name="audit_reasoncode")
    private String audit_reasoncode;        //审核原因编码
	
	public String getAudit_reasoncode() {
		return audit_reasoncode;
	}
	public void setAudit_reasoncode(String audit_reasoncode) {
		this.audit_reasoncode = audit_reasoncode;
	}

	@Condition
    @Column(name="audit_reasonid")
    private String audit_reasonid;        //审核原因id
	
	public String getAudit_reasonid() {
		return audit_reasonid;
	}
	public void setAudit_reasonid(String audit_reasonid) {
		this.audit_reasonid = audit_reasonid;
	}

	@Condition
    @Column(name="audit_reason")
    
    private String audit_reason;        //审核原因
    
    public String getAudit_reason() {
		return audit_reason;
	}
	public void setAudit_reason(String audit_reason) {
		this.audit_reason = audit_reason;
	}

	@Condition
    @Column(name="audit_deductionRate")
    
    private String audit_deductionRate;        //审核扣率
    
    public String getAudit_deductionRate() {
		return audit_deductionRate;
	}
	public void setAudit_deductionRate(String audit_deductionRate) {
		this.audit_deductionRate = audit_deductionRate;
	}

	@Condition
    @Column(name="pk_pound")
    
    private String pk_pound;        //磅单pk

    public void setPk_pound(String pk_pound){
        this.pk_pound = pk_pound;
    }
    public String getPk_pound(){
        return this.pk_pound;
    }
    
    @Condition
    @Column(name="audit_totalDeductionRate")
    
    private String audit_totalDeductionRate;        //审核扣率和件数合计
    
    
    public String getAudit_totalDeductionRate() {
		return audit_totalDeductionRate;
	}
	public void setAudit_totalDeductionRate(String audit_totalDeductionRate) {
		this.audit_totalDeductionRate = audit_totalDeductionRate;
	}

	@Condition
    @Column(name="totalDeductionRate")
    
    private String totalDeductionRate;        //扣率和件数合计


	public String getTotalDeductionRate() {
		return totalDeductionRate;
	}
	public void setTotalDeductionRate(String totalDeductionRate) {
		this.totalDeductionRate = totalDeductionRate;
	}
	@Override
	public String getBpmBillCode() {
		return  DateUtil.format(new Date(), "yyyyMMddHHmmss"+new Random().nextInt(10))   ;
	}


	@Override
	public String getMainBoCode() {
		return "jx_importpaper_b";
	}

}
